/*************************************************
* Title：TinyToolKit
* Author：Opportunity 
* Describe：
* CreateTime：2021-03-01 15:20:13
* Version：1.0
* Modify Recorder：
*************************************************/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TinyToolKit.DataTree
{
    public  class TinyData
    {

    }

    public class TinyData<T> : TinyData
    {
        private T _value;

        public T Value
        {
            get => _value;
            set => _value = value;
        }
        
        protected TinyData()
        {
            _value = default;
        }
        
        protected TinyData(T value)
        {
            _value = value;
        }

        public void Reset()
        {
            _value = default;
        }

        public override string ToString()
        {
            return _value != null ? _value.ToString() : "Null";
        }
    }
}

